package com.kc.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.kc.bean.Article;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2019-10-22
 */
public interface ArticleMapper extends BaseMapper<Article> {

    @Select("select artcile_id,userid,title,publisher,contene,img_path,reading_number,comments_number,classification_id from article ${ew.customSqlSegment}")
    Article getArticle(@Param(Constants.WRAPPER)Wrapper wrapper);


}
